package com.data.modules.sm.service.impl;

import com.data.modules.sm.entity.SmCommunity;
import com.data.modules.sm.mapper.SmCommunityMapper;
import com.data.modules.sm.service.ISmCommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 时迈社区表
 * @Author: data-boot
 * @Date:   2022-11-11
 * @Version: V1.0
 */
@Service
public class SmCommunityServiceImpl extends ServiceImpl<SmCommunityMapper, SmCommunity> implements ISmCommunityService {

    @Autowired
    private SmCommunityMapper smCommunityMapper;

    /**
     * 按照省 统计社区数量
     * @param area
     * @return
     */
    @Override
    public List<Map> getAllCommunityInfo(String area) {

        List<Map> list = smCommunityMapper.getAllCommunityInfo(area);

        return list;
    }

    /**
     * 统计社区基本信息
     * @param area
     * @return
     */
    @Override
    public List<Map> getCommunityInfo(String area) {
        List<Map> list = smCommunityMapper.getCommunityInfo(area);

        return list;
    }
}
